            <?php echo CHtml::form(array('/psytest/submitanswer'), 'POST', array('id' => 'psy_test_form')) ?>
			<div class="boxB boxNoBg">
				<div class="boxBmiddle">
					<div class="test-ques" style="position:relative;">
						<dl>
							<dt><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td width="1%"><?php echo $question->questionOrder ?>、</td><td width="100%"><?php echo nl2br(strip_tags($question->question, '<img><br>')) ?></td></tr></tbody></table></dt>
							<?php echo CHtml::activeRadioButtonList($psytestForm, 'selectedAnswerId', CHtml::listData($question->answers, 'answerId', 'answer'), array('template' => '<dd>{input} {label}</dd>', 'separator' => "")) ?>
							<dd class="tc"><?php echo CHtml::submitButton('提 交', array('class' => 'login_tj2', 'id' => 'submit_question_btn')) ?></dd>
						</dl>
					</div>
				</div>
				<div class="boxBbottom">
                	<div class="boxBb1"><div class="boxBb2"><div class="boxBb3"></div></div></div>
                </div>
			</div>
            <?php echo CHtml::endForm() ?>
            <script type="text/javascript">
            $(document).ready(function() {
				$('#submit_question_btn').attr('disabled', false);
                var loadingIcon = '<img src="'+baseUrl+'/images/ajax-loader.gif" alt="载入中" title="载入中" style="position:absolute; margin-left:48%; top:43%;" />';
				var messageBox = $('<dd><div class="state mt10"></div></dd>');
				
                $('#psy_test_form').bind('submit', function() {
    				if($('input[type=radio][name=PsytestForm[selectedAnswerId]][checked]').length != 1) {
        				messageBox.hide();
        				if(messageBox.find('div').text() == '') {
							messageBox.find('div').append('请选择一个答案再进行下一题。');
							$(messageBox).insertAfter('div.test-ques dl dt');
        				}
						messageBox.fadeIn();
						return false;
    				} else {
						messageBox.find('div').text('').remove();
    				}
					$('#submit_question_btn').attr('disabled', true);
                    $(loadingIcon).appendTo($('div.test-ques'));
                    $(this).ajaxSubmit({
                         target: '#test_question_box'
                    });
                    return false;
                });
            });
            </script>
